﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Linq.Expressions;
using System.Text;

namespace Lis.IDAL
{
    public partial interface IBaseDal<T> where T:class ,new ()
    {
        /// <summary>
        /// 新增
        /// </summary>
        /// <param name="t">实体模型</param>
        /// <returns></returns>
         bool Add(T t);

        /// <summary>
        /// 更新
        /// </summary>
        /// <param name="t">实体模型</param>
        /// <returns></returns>
         bool Update(T t);

        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="t">实体模型</param>
        /// <returns></returns>
         bool Delete(T t);

         IQueryable<T> GetPageEntities<S>(int pageSize, int pageIndex, out int total, bool isAsc, Expression<Func<T, bool>> whereLambda, Expression<Func<T, S>> orderByLambda);
    }
}
